package application.controller 
{
	import adobe.utils.CustomActions;
	import application.ApplicationFacade;
	import application.model.resourceProxy;
	import application.util.ResourceUtil;
	import application.view.MenuMediator;
	import flash.display.Stage;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.MacroCommand;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	import org.puremvc.as3.patterns.mediator.Mediator;
	
	/**
	 * ...
	 * @author QinYuanLong
	 */
	public class StartupCommand extends SimpleCommand 
	{		
		override public function execute(notification:INotification):void
		{
			facade.registerMediator(new MenuMediator());
			facade.registerProxy(new resourceProxy());
			ResourceUtil.appStage = (notification.getBody() as Main).stage;
		}
		
	}

}